﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="GradePointAverageControl.ascx.vb" Inherits="SISSAT.WebDevelopment.Shared.UserControls.GradePointAverageControl" %>
<%@ Register TagPrefix="sissat" TagName="DropDownListControl" Src="/Shared/UserControls/DropDownListBaseControl.ascx" %>
<div class="container">
    <sissat:DropDownListControl ID="schoolYearDropDownList" runat="server" LabelText="SY/Semester" PanelCssClass="lfloat" AutoPostBack="True" />
    <div class="lfloat">
        <div class="label">[ <a href="/Pages/Print/ReportCard.aspx?sys=<%=SelectedValue %>" class="fcolor1" target="_blank" title="Print Page. Opens a new window">Print Page</a> ]</div>
    </div>
</div>
<table class="grades">
    <asp:Repeater ID="reportCardRepeater" runat="server">
        <HeaderTemplate>
            <tr class="header">
		        <td class="col1">Code</td>
		        <td class="col2">Subject</td>
		        <td class="col3">Units</td>
		        <td class="col4">Grade Point</td>
	        </tr>
            <tr>
                <td colspan="4"><hr /></td>
            </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="contentdata">
                <td class="alignl"><%# Eval("SubjectCode")%></td>
                <td class="alignl"><%# Eval("SubjectName")%></td>
                <td><%# Eval("Units")%></td>
                <td>
                    <% If IsReadOnly Then%>
                        <%# Eval("GradePoint")%>
                    <%Else%>
                        <a href="/Pages/Home/Grades.aspx?scid=<%#Eval("ScheduleId")%>" class="fcolor1" title="View Details"><%# Eval("GradePoint")%></a>
                    <%End If%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <td colspan="4"><hr /></td>
            </tr>
            <tr class="total">
		        <td colspan="3" class="alignr">Credited Units:</td>
                <td><%=TotalUnits%></td>
	        </tr>
            <tr class="total">
		        <td colspan="3" class="alignr">Grade Point Average:</td>
		        <td><%=GradePointAverage%></td>
	        </tr>
        </FooterTemplate>
    </asp:Repeater>
</table>

